import { Dimensions, Platform } from 'react-native'
const { width, height } = Dimensions.get('window')

export const deviceInfo = {
  // 设备宽度
  deviceWidth: width,
  deviceHeight: height,
  isIphoneX: width === 375 && height === 812,
  isIphoneXS: width === 375 && height === 812,
  isIphoneXSMAX: width === 414 && height === 896,
  isIphoneXR: width === 414 && height === 896,
  isConcaveScreen: (width === 375 && height === 812) || (width === 414 && height === 896),
  // 设备系统
  deviceOS: Platform.OS,
  isiOS: Platform.OS === 'ios',
  // 当前config: debug \ release
  // eslint-disable-next-line no-undef
  mode: __DEV__ ? 'xdebug' : 'release'
}